Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Google Analytics #206

Merged
merged 2 commits into from
Apr 13, 2024
Merged

Disable Google Analytics #206

merged 2 commits into from
Apr 13, 2024

Conversation

shgysk8zer0
Copy link
Contributor

Description and issue

Please add relevant sections (Added, removed, changed, fixed) to CHANGELOG.md

List of significant changes made

@shgysk8zer0
Copy link
Contributor Author

Just testing the actual impacts of loading GA. This is just a Deploy Preview and suffers from being slightly slower to begin with, but still shows just how significant the impacts are:

Regular Core Web Vitals

image

With GA Disabled

image

@shgysk8zer0
Copy link
Contributor Author

shgysk8zer0 commented Apr 13, 2024

Looks like just using scheduler.postTask without requestIdleCallback might yield the best of both worlds. Shouldn't impact loading of essentials, but reduces impact on Core Web Vitals.

image

@shgysk8zer0 shgysk8zer0 marked this pull request as ready for review April 13, 2024 02:35
@shgysk8zer0 shgysk8zer0 merged commit c4a9323 into master Apr 13, 2024
10 checks passed
@shgysk8zer0 shgysk8zer0 deleted the patch/disable-ga branch April 13, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant